<?php 
	/*session_start();
	
	if (!isset($_SESSION['autentica'])){
		Header("Location: login.php"); 
	}
	else {
		$login = $_SESSION['login'];
	}
	
	include_once '../includes/header2.php';	
	include_once '../includes/menu.php';*/
?>
<h1>FOTOS</h1>
<div id="content">
<?php
				$pasta = "../fotosimoveis/";
				// exten�oes aceitas
				$arquivos= glob("$pasta{*.jpg,*.JPG,*.png,*.PNG,*.gif,*.GIF,*.bmp*.BMP}", GLOB_BRACE);
			
				foreach ($arquivos as $img) {
				?>
						<img src="<?php echo $img ; ?>" alt="" width="200"/>
						
						<a href="fotosDel.php?imagem=<?php echo $img ; ?>">Excluir</a>
				<?php 
						}
				?>
</div>	
<?php
	include_once '../includes/footer.php';
?>
</html>